package com.gz.DroidPong.Constants;

import org.anddev.andengine.entity.scene.Scene;

import com.gz.DroidPong.Scenes.DroidPongScene;
import com.gz.DroidPong.Scenes.LoadingScene;

public class SceneManager {
	public static final int SCENE_MENU = 0;
	public static final int SCENE_GAME = SCENE_MENU + 1;
	public static final int SCENE_OPTIONS = SCENE_GAME + 1;
	public static final int SCENE_LOADING = SCENE_OPTIONS + 1;
		
	private static DroidPongScene mMenuScene;
//	private static EuchreGameScene mGameScene;
//	private static OptionsScene mOptionsScene;
	private static LoadingScene mLoadingScene;
	
	private static int mCurrentScene = 0;
	
	public static int getCurrentSceneID(){
		return mCurrentScene;
	}
	
	public static void setCurrentScene(int pSceneID){
		mCurrentScene = pSceneID;
	}
	
	public static void setScene(int pSceneID, Scene pScene){
		switch (pSceneID) {
		case SCENE_MENU:
			mMenuScene = (DroidPongScene) pScene;
			break;
		case SCENE_GAME:
			mMenuScene = (DroidPongScene) pScene;
			break;
		case SCENE_OPTIONS:
			mMenuScene = (DroidPongScene) pScene;
			break;
		case SCENE_LOADING:
			mLoadingScene = (LoadingScene) pScene;
			break;
		default:
		}
	}
		
	public static LoadingScene getLoadingScene(){
		return mLoadingScene;
	}
	
	public static DroidPongScene getMenuScene(){
		return mMenuScene;
	}
	
	public static DroidPongScene getOptionsScene(){
		return mMenuScene;
	}
	
	public static DroidPongScene getEuchreGameScene(){
		return mMenuScene;
	}
	
	public static void setMenuScene(DroidPongScene pScene){
		mMenuScene = pScene;
	}
	
	public static void setGameScene(DroidPongScene pScene){
		mMenuScene = pScene;
	}
	
	public static void setOptionsScene(DroidPongScene pScene){
		mMenuScene = pScene;
	}
	
	public static void setLoadingScene(LoadingScene pScene){
		mLoadingScene = pScene;
	}

}
